package com.github.ecbp.user.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.ecbp.common.resp.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Collections;
import java.util.Date;
import java.util.List;


@Data
@ApiModel
public class AdminPageVo extends BaseVO {

    @ApiModelProperty(value = "登录手机号")
    private String loginPhone;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "角色")
    private List<String> roleNames = Collections.emptyList();

    /**
     * 帐号启用状态：0->禁用；1->启用
     */
    @ApiModelProperty("启用状态 0->禁用；1->启用")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
